<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>netLink C++ 11: MsgPack::Primitive Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">netLink C++ 11
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>MsgPack</b></li><li class="navelem"><a class="el" href="class_msg_pack_1_1_primitive.html">Primitive</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_msg_pack_1_1_primitive-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">MsgPack::Primitive Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_msg_pack_1_1_element.html" title="Abstract class to represent one element in a MsgPack stream.">MsgPack::Element</a> to represent one byte primitives like booleans and null.  
 <a href="class_msg_pack_1_1_primitive.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_primitive_8h_source.html">Primitive.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for MsgPack::Primitive:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_msg_pack_1_1_primitive.png" usemap="#MsgPack::Primitive_map" alt=""/>
  <map id="MsgPack::Primitive_map" name="MsgPack::Primitive_map">
<area href="class_msg_pack_1_1_element.html" title="Abstract class to represent one element in a MsgPack stream." alt="MsgPack::Element" shape="rect" coords="0,0,118,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a91a6aeff62a3dee5c4f1a5f6e34c73ef"><td class="memItemLeft" align="right" valign="top"><a id="a91a6aeff62a3dee5c4f1a5f6e34c73ef" name="a91a6aeff62a3dee5c4f1a5f6e34c73ef"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Primitive</b> (bool value)</td></tr>
<tr class="memdesc:a91a6aeff62a3dee5c4f1a5f6e34c73ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize from boolean. <br /></td></tr>
<tr class="separator:a91a6aeff62a3dee5c4f1a5f6e34c73ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78ab25d53609934a473756deff5cae6a"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; <a class="el" href="class_msg_pack_1_1_element.html">Element</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_primitive.html#a78ab25d53609934a473756deff5cae6a">copy</a> () const</td></tr>
<tr class="memdesc:a78ab25d53609934a473756deff5cae6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a deep copy of this element.  <br /></td></tr>
<tr class="separator:a78ab25d53609934a473756deff5cae6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50fa31f1491e0ddb80607655d45158c8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_primitive.html#a50fa31f1491e0ddb80607655d45158c8">toJSON</a> (std::ostream &amp;stream) const</td></tr>
<tr class="memdesc:a50fa31f1491e0ddb80607655d45158c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes a human readable JSON-like string into the given stream.  <br /></td></tr>
<tr class="separator:a50fa31f1491e0ddb80607655d45158c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37056ac377c8c0658fbdaedfbc89a90e"><td class="memItemLeft" align="right" valign="top">Type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_primitive.html#a37056ac377c8c0658fbdaedfbc89a90e">getType</a> () const</td></tr>
<tr class="memdesc:a37056ac377c8c0658fbdaedfbc89a90e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the MsgPack::Type.  <br /></td></tr>
<tr class="separator:a37056ac377c8c0658fbdaedfbc89a90e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26d38a3f3e499625ed8ded7f2b695233"><td class="memItemLeft" align="right" valign="top"><a id="a26d38a3f3e499625ed8ded7f2b695233" name="a26d38a3f3e499625ed8ded7f2b695233"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isNull</b> () const</td></tr>
<tr class="memdesc:a26d38a3f3e499625ed8ded7f2b695233"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns if type is NIL. <br /></td></tr>
<tr class="separator:a26d38a3f3e499625ed8ded7f2b695233"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8ad0e8d75b269d0ff47dae1f9b1316d"><td class="memItemLeft" align="right" valign="top"><a id="ae8ad0e8d75b269d0ff47dae1f9b1316d" name="ae8ad0e8d75b269d0ff47dae1f9b1316d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>getValue</b> () const</td></tr>
<tr class="memdesc:ae8ad0e8d75b269d0ff47dae1f9b1316d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the boolean value. <br /></td></tr>
<tr class="separator:ae8ad0e8d75b269d0ff47dae1f9b1316d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_msg_pack_1_1_element"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_msg_pack_1_1_element')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_msg_pack_1_1_element.html">MsgPack::Element</a></td></tr>
<tr class="memitem:a11983f0819dc822ab1b885375b057f16 inherit pub_methods_class_msg_pack_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual std::unique_ptr&lt; <a class="el" href="class_msg_pack_1_1_element.html">Element</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_element.html#a11983f0819dc822ab1b885375b057f16">copy</a> () const =0</td></tr>
<tr class="memdesc:a11983f0819dc822ab1b885375b057f16 inherit pub_methods_class_msg_pack_1_1_element"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a deep copy of this element.  <br /></td></tr>
<tr class="separator:a11983f0819dc822ab1b885375b057f16 inherit pub_methods_class_msg_pack_1_1_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4363c2a4e0dbc522587a46c6542a3b1 inherit pub_methods_class_msg_pack_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_element.html#ad4363c2a4e0dbc522587a46c6542a3b1">toJSON</a> (std::ostream &amp;stream) const =0</td></tr>
<tr class="memdesc:ad4363c2a4e0dbc522587a46c6542a3b1 inherit pub_methods_class_msg_pack_1_1_element"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes a human readable JSON-like string into the given stream.  <br /></td></tr>
<tr class="separator:ad4363c2a4e0dbc522587a46c6542a3b1 inherit pub_methods_class_msg_pack_1_1_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9cf8191016ea14574124577621c1a4a inherit pub_methods_class_msg_pack_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual Type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_element.html#af9cf8191016ea14574124577621c1a4a">getType</a> () const =0</td></tr>
<tr class="memdesc:af9cf8191016ea14574124577621c1a4a inherit pub_methods_class_msg_pack_1_1_element"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the MsgPack::Type.  <br /></td></tr>
<tr class="separator:af9cf8191016ea14574124577621c1a4a inherit pub_methods_class_msg_pack_1_1_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7a39a74fbd393087442df2d4aa4815f inherit pub_methods_class_msg_pack_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_element.html#ae7a39a74fbd393087442df2d4aa4815f">getSizeInBytes</a> () const</td></tr>
<tr class="memdesc:ae7a39a74fbd393087442df2d4aa4815f inherit pub_methods_class_msg_pack_1_1_element"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the size in bytes this <a class="el" href="class_msg_pack_1_1_element.html" title="Abstract class to represent one element in a MsgPack stream.">MsgPack::Element</a> takes if completely serialized.  <br /></td></tr>
<tr class="separator:ae7a39a74fbd393087442df2d4aa4815f inherit pub_methods_class_msg_pack_1_1_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a32234219fe11128e46868159e6260878"><td class="memItemLeft" align="right" valign="top"><a id="a32234219fe11128e46868159e6260878" name="a32234219fe11128e46868159e6260878"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Primitive</b> (Type <a class="el" href="class_msg_pack_1_1_primitive.html#a06b06275ac58266ffc73f687ff6b3bb0">type</a>)</td></tr>
<tr class="memdesc:a32234219fe11128e46868159e6260878"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal initialize from type. <br /></td></tr>
<tr class="separator:a32234219fe11128e46868159e6260878"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae35d584d2a500c19676059b330dc738c"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_primitive.html#ae35d584d2a500c19676059b330dc738c">startDeserialize</a> (uint8_t firstByte)</td></tr>
<tr class="memdesc:ae35d584d2a500c19676059b330dc738c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads in one byte and returns the initial deserializer position in bytes (negative value if there is a header)  <br /></td></tr>
<tr class="separator:ae35d584d2a500c19676059b330dc738c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cc2ced223c2b5038ffb8c1af9e7f49d"><td class="memItemLeft" align="right" valign="top">std::streamsize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_primitive.html#a3cc2ced223c2b5038ffb8c1af9e7f49d">serialize</a> (int64_t &amp;pos, std::basic_streambuf&lt; char &gt; *streamBuffer, std::streamsize bytes)</td></tr>
<tr class="memdesc:a3cc2ced223c2b5038ffb8c1af9e7f49d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serializes bytes at the given serializer position pos into streamBuffer.  <br /></td></tr>
<tr class="separator:a3cc2ced223c2b5038ffb8c1af9e7f49d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab334fe1d38b8826947b5cba6e64fcb91"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_primitive.html#ab334fe1d38b8826947b5cba6e64fcb91">getEndPos</a> () const</td></tr>
<tr class="memdesc:ab334fe1d38b8826947b5cba6e64fcb91"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the first invalid (de)serializer position.  <br /></td></tr>
<tr class="separator:ab334fe1d38b8826947b5cba6e64fcb91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_msg_pack_1_1_element"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_msg_pack_1_1_element')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_msg_pack_1_1_element.html">MsgPack::Element</a></td></tr>
<tr class="memitem:a2658a4a70d15fe463891a4597b85e243 inherit pro_methods_class_msg_pack_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_element.html#a2658a4a70d15fe463891a4597b85e243">startSerialize</a> ()</td></tr>
<tr class="memdesc:a2658a4a70d15fe463891a4597b85e243 inherit pro_methods_class_msg_pack_1_1_element"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the initial serializer position in bytes (negative value if there is a header)  <br /></td></tr>
<tr class="separator:a2658a4a70d15fe463891a4597b85e243 inherit pro_methods_class_msg_pack_1_1_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7487754e1758cdab091822fbe97e8c55 inherit pro_methods_class_msg_pack_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_element.html#a7487754e1758cdab091822fbe97e8c55">startDeserialize</a> (uint8_t firstByte)=0</td></tr>
<tr class="memdesc:a7487754e1758cdab091822fbe97e8c55 inherit pro_methods_class_msg_pack_1_1_element"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads in one byte and returns the initial deserializer position in bytes (negative value if there is a header)  <br /></td></tr>
<tr class="separator:a7487754e1758cdab091822fbe97e8c55 inherit pro_methods_class_msg_pack_1_1_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6914dffd1849882c6a4c315c2b39f3a inherit pro_methods_class_msg_pack_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual std::streamsize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_element.html#ad6914dffd1849882c6a4c315c2b39f3a">serialize</a> (int64_t &amp;pos, std::basic_streambuf&lt; char &gt; *streamBuffer, std::streamsize bytes)=0</td></tr>
<tr class="memdesc:ad6914dffd1849882c6a4c315c2b39f3a inherit pro_methods_class_msg_pack_1_1_element"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serializes bytes at the given serializer position pos into streamBuffer.  <br /></td></tr>
<tr class="separator:ad6914dffd1849882c6a4c315c2b39f3a inherit pro_methods_class_msg_pack_1_1_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae79129328781728c7de690826dfbc774 inherit pro_methods_class_msg_pack_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual std::streamsize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_element.html#ae79129328781728c7de690826dfbc774">deserialize</a> (int64_t &amp;pos, std::basic_streambuf&lt; char &gt; *streamBuffer, std::streamsize bytes)</td></tr>
<tr class="memdesc:ae79129328781728c7de690826dfbc774 inherit pro_methods_class_msg_pack_1_1_element"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deserializes bytes at the given deserializer position pos from streamBuffer.  <br /></td></tr>
<tr class="separator:ae79129328781728c7de690826dfbc774 inherit pro_methods_class_msg_pack_1_1_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a385642caa044d461759d06e04e929da8 inherit pro_methods_class_msg_pack_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_element.html#a385642caa044d461759d06e04e929da8">containerDeserialized</a> ()</td></tr>
<tr class="memdesc:a385642caa044d461759d06e04e929da8 inherit pro_methods_class_msg_pack_1_1_element"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the header of a container is deserialized and reserves the necessary space for its element vector.  <br /></td></tr>
<tr class="separator:a385642caa044d461759d06e04e929da8 inherit pro_methods_class_msg_pack_1_1_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88f9d934202b2105e0709966f8007dfe inherit pro_methods_class_msg_pack_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual std::vector&lt; std::unique_ptr&lt; <a class="el" href="class_msg_pack_1_1_element.html">Element</a> &gt; &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_element.html#a88f9d934202b2105e0709966f8007dfe">getElementsVector</a> ()</td></tr>
<tr class="memdesc:a88f9d934202b2105e0709966f8007dfe inherit pro_methods_class_msg_pack_1_1_element"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a raw pointer to the element vector of a container.  <br /></td></tr>
<tr class="separator:a88f9d934202b2105e0709966f8007dfe inherit pro_methods_class_msg_pack_1_1_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a994120fc667b2ffbc163057bb520247e inherit pro_methods_class_msg_pack_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_element.html#a994120fc667b2ffbc163057bb520247e">getEndPos</a> () const =0</td></tr>
<tr class="memdesc:a994120fc667b2ffbc163057bb520247e inherit pro_methods_class_msg_pack_1_1_element"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the first invalid (de)serializer position.  <br /></td></tr>
<tr class="separator:a994120fc667b2ffbc163057bb520247e inherit pro_methods_class_msg_pack_1_1_element"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a06b06275ac58266ffc73f687ff6b3bb0"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_msg_pack_1_1_primitive.html#a06b06275ac58266ffc73f687ff6b3bb0">type</a></td></tr>
<tr class="separator:a06b06275ac58266ffc73f687ff6b3bb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:ad3f5346f31d572dd2ab4fcd658de5bc4"><td class="memItemLeft" align="right" valign="top"><a id="ad3f5346f31d572dd2ab4fcd658de5bc4" name="ad3f5346f31d572dd2ab4fcd658de5bc4"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>Serializer</b></td></tr>
<tr class="separator:ad3f5346f31d572dd2ab4fcd658de5bc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c541e43f0cc8d5a52e519ebcf1709f5"><td class="memItemLeft" align="right" valign="top"><a id="a0c541e43f0cc8d5a52e519ebcf1709f5" name="a0c541e43f0cc8d5a52e519ebcf1709f5"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>Deserializer</b></td></tr>
<tr class="separator:a0c541e43f0cc8d5a52e519ebcf1709f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_msg_pack_1_1_element.html" title="Abstract class to represent one element in a MsgPack stream.">MsgPack::Element</a> to represent one byte primitives like booleans and null. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a78ab25d53609934a473756deff5cae6a" name="a78ab25d53609934a473756deff5cae6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78ab25d53609934a473756deff5cae6a">&#9670;&#160;</a></span>copy()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::unique_ptr&lt; <a class="el" href="class_msg_pack_1_1_element.html">Element</a> &gt; MsgPack::Primitive::copy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a deep copy of this element. </p>

<p>Implements <a class="el" href="class_msg_pack_1_1_element.html#a11983f0819dc822ab1b885375b057f16">MsgPack::Element</a>.</p>

</div>
</div>
<a id="ab334fe1d38b8826947b5cba6e64fcb91" name="ab334fe1d38b8826947b5cba6e64fcb91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab334fe1d38b8826947b5cba6e64fcb91">&#9670;&#160;</a></span>getEndPos()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int64_t MsgPack::Primitive::getEndPos </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the first invalid (de)serializer position. </p>

<p>Implements <a class="el" href="class_msg_pack_1_1_element.html#a994120fc667b2ffbc163057bb520247e">MsgPack::Element</a>.</p>

</div>
</div>
<a id="a37056ac377c8c0658fbdaedfbc89a90e" name="a37056ac377c8c0658fbdaedfbc89a90e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37056ac377c8c0658fbdaedfbc89a90e">&#9670;&#160;</a></span>getType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Type MsgPack::Primitive::getType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the MsgPack::Type. </p>

<p>Implements <a class="el" href="class_msg_pack_1_1_element.html#af9cf8191016ea14574124577621c1a4a">MsgPack::Element</a>.</p>

</div>
</div>
<a id="a3cc2ced223c2b5038ffb8c1af9e7f49d" name="a3cc2ced223c2b5038ffb8c1af9e7f49d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cc2ced223c2b5038ffb8c1af9e7f49d">&#9670;&#160;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::streamsize MsgPack::Primitive::serialize </td>
          <td>(</td>
          <td class="paramtype">int64_t &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::basic_streambuf&lt; char &gt; *&#160;</td>
          <td class="paramname"><em>streamBuffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::streamsize&#160;</td>
          <td class="paramname"><em>bytes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Serializes bytes at the given serializer position pos into streamBuffer. </p>

<p>Implements <a class="el" href="class_msg_pack_1_1_element.html#ad6914dffd1849882c6a4c315c2b39f3a">MsgPack::Element</a>.</p>

</div>
</div>
<a id="ae35d584d2a500c19676059b330dc738c" name="ae35d584d2a500c19676059b330dc738c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae35d584d2a500c19676059b330dc738c">&#9670;&#160;</a></span>startDeserialize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int64_t MsgPack::Primitive::startDeserialize </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>firstByte</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reads in one byte and returns the initial deserializer position in bytes (negative value if there is a header) </p>

<p>Implements <a class="el" href="class_msg_pack_1_1_element.html#a7487754e1758cdab091822fbe97e8c55">MsgPack::Element</a>.</p>

</div>
</div>
<a id="a50fa31f1491e0ddb80607655d45158c8" name="a50fa31f1491e0ddb80607655d45158c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50fa31f1491e0ddb80607655d45158c8">&#9670;&#160;</a></span>toJSON()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MsgPack::Primitive::toJSON </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Writes a human readable JSON-like string into the given stream. </p>

<p>Implements <a class="el" href="class_msg_pack_1_1_element.html#ad4363c2a4e0dbc522587a46c6542a3b1">MsgPack::Element</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a06b06275ac58266ffc73f687ff6b3bb0" name="a06b06275ac58266ffc73f687ff6b3bb0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06b06275ac58266ffc73f687ff6b3bb0">&#9670;&#160;</a></span>type</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t MsgPack::Primitive::type</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Internal type field </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/<a class="el" href="_primitive_8h_source.html">Primitive.h</a></li>
<li>src/MsgPack.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7
</small></address>
</body>
</html>
